import { getToken } from '../utils/localData'
import request from '../utils/request'
export const uploadFileAPI = (fd) => {
  return request({
    method: 'post',
    url: '/upload',
    headers: {
      Authorization: getToken()
    },
    // 上传文件需要 FormData
    data: fd
  })
}